/*-----------------------------------------------------------------------------------*/
/* Nuvoton Corporation confidential                                                  */
/*                                                                                   */
/* Copyright (c) 2009 by Nuvoton Corporation                                         */
/* All rights reserved                                                               */
/*                                                                                   */
/*-----------------------------------------------------------------------------------*/
/* File Contents:                                                                    */
/*   usbd_mass.c                                                                     */
/*                                                                                   */
/* This file contains:                                                               */
/*                                                                                   */
/* Project:                                                                          */
/*                                                                                   */
/* Remark:                                                                           */
/*                                                                                   */
/*-----------------------------------------------------------------------------------*/

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

#include "wblib.h"
#include "wbfmi.h"
#include "usbd.h"
#include "NUC900_reg.h"
#include "ide.h"



//------------------------- Program -------------------------//
void usbdExample (VOID)
{

   	USB_Initialize();  
    Flash_Init();  
    
   	while (1)
	{
		if (USBModeFlag)
			MassBulk();
	}
}

INT usbd_main (VOID)
{
	usbdExample();
	return 0;
}
